#include <iostream>
#include <string>

using namespace std;

string d1 = "Don";
string d2 = "don2";

void f()
{
	cout << 10;
}

void g()
{
	int i=10;
	cout << i;
}

void h(int i)
{
	cout << "don the value of i is ";
	cout << i;
	cout << '\n';
}

void k()
{
	cout << 'd';
	cout << 'o';
	cout << 'n';
}

void h2(int i)
{
	cout << "\n\ndon the value of i is " << i << "\n\n";
}

void m1()
{
	string s1 = "Don";
	string s2 = "don2";
	string s3 = "\n\nHello " + s1 + ", " + s2 + "!\n\n";
	cout << s3;
}

void m2 (string& s1, string& s2)
{
	s1 = s1 + '\n';
	s2 += s1 + '\n';

	cout << s2;
}

void respond( const string& answer)
{
	string incantation = "donato";
	if(answer == incantation) {
		cout << "\nyes\n";
	} else if (answer == "yes") {
		cout << "\nyes yes\n";
	}
}

void sliceme() 
{
	string name = "james dalongdong";
	string s = name.substr(0,5);
	cout << "\n\n" + s + "\n\n";
	name.replace(0,5, "nicola");
	cout << "\n\n" + name + "\n\n";
}

int main( int argc, char **argv)
{
	string d3 = "yes";
	string name = "james dalongdong";

	cout << "\n\nHello Dondon\n\n" << endl;
	f();
	g();
	h(10);
	k();
	h2(100);
	m1();
	m2(d1, d2);
	respond(d3);
	sliceme();
	return (0);
}